<tr>
    <td width="70%" align="left" valign="top">

<% for column in District.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @district.send(column.name) %>
</p>
<% end %>

<%= link_to '编辑', edit_admin_district_path(@district) %> |
<%= link_to '返回', admin_districts_path %><br/>

<h2><%= @district.title%>下社区列表:</h2>
<table width="60%" border="0">
<% for community in @communities%>
    <tr>
      <td align="left" valign="middle">
      <%= link_to "#{community.title}", admin_community_path(community.district, community) %>
      </td>
      <td align="left">
      <%= link_to "编辑", edit_admin_community_path(community) %>
      </td>
    </tr>
<% end %>
</table>
<% if !@communities.nil? %>
<%= will_paginate(@communities)%>
<% end %>

</td>
    <td width="30%" align="left" valign="top">
       <%= link_to '新建社区', new_admin_community_path(@district) %><br/>
       <%= link_to '导入社区', import_admin_district_path(@district) %><br/>
       <%= link_to '建立社区论坛', create_forum_admin_district_path(@district) %> 
 </td>
  </tr>